<?$this->load->view('admin/tools/admin-header')?>
<?$this->load->view('admin/tools/admin-menu')?>
<?$this->load->view('admin/tools/admin-search-marketing')?>
<div class="wrap">
	<a href=""><div id="icon-index" class="icon32"><br /></div></a><br>
<h3><a>Manage -> Marketing</a></h3>
<?if($mode!="noerror"){echo"<div id='message' class='updated fade'><p>$pesan</p></div>";}?>
<div id="dashboard-widgets-wrap">
<form id="posts-filter" onsubmit="return confirm('Pastikan Data yang akan dihapus dalam keadaan tercentang.')" action="<?=site_url('administrator/multi_tokoh');?>" method="POST">
<table width="90%">
<tr>	
	<td width="30px">
	<input type="submit" value="Delete" name="delete"/>
	</td>
	<td>
	<input type="button" value="Tambah Marketing" onclick="document.location='<?=site_url("administrator/input_marketing")?>'"/>
	</td>
		<?/*<td style="float:right">
		<form action="<?=site_url('administrator/mng_tokoh/');?>" method="POST">
		<table>
			<tr>
				<td>
				<select name="cari_kategori">
					<option value="judul">Judul</option>
					<option value="tanggal">Tanggal</option>
					<option value="penulis">penulis</option>
					<option value="status">Status</option>
				</select>
				</td>
				<td id="searchNoDate">
					<input type="text" name="cari_deskripsi" size="40"/>
				</td>
				<td id="searchDate" style="display:none">
					<select name="hari">
						<option value="">-Hari-</option>
						<?for($i=1;$i<32;$i++){?>
						<option value="<?=$i?>"><?=$i?></option>
						<?}?>
					</select>-<select name="bulan">
						<option value="">-Bulan-</option>
						<?for($i=1;$i<13;$i++){?>
						<option value="<?=$i?>"><?=$i?></option>
						<?}?>
					</select>-<select name="tahun">
						<option value="">-tahun-</option>
						<?for($i=date("Y")-15;$i<date("Y")+6;$i++){?>
						<option value="<?=$i?>"><?=$i?></option>
						<?}?>
					</select>
				</td>
				<td>
					<input type="submit" value="Cari"/>
				</td>
			</tr>
		</table>
		</form>
	</td>*/?>
</tr>
</table>

<br class="clear" />
<form id="posts-filter" onsubmit="return confirm('Pastikan Data yang akan dihapus dalam keadaan tercentang.')" action="<?=site_url('administrator/multi_tokoh');?>" method="POST">

<table width="90%">
	<thead>
	<tr style="background:#9b9b9b;color:yellow;font-family:arial;height:25px;">
		<th scope="col" class="th-view check-column"><input type="checkbox" /></th>
		<th scope="col" class="th-view" >No</th>
		<th scope="col" class="th-view" width="10%">NIP</th>
		<th scope="col" class="th-view" width="30%">Nama Marketing</th>
		<th scope="col" class="th-view" width="20%">Email</th>
		<th scope="col" class="th-view" width="10%">No Telp</th>
		<th scope="col" class="th-view" width="10%">Pin BB</th>
		<th scope="col" class="th-view" width="20%">Aksi</th>
	</tr>
	</thead>
	<tbody>
	<?
	$i=1;
	$uri = $this->uri->segment(3);
	if($uri==null){$uri=0;}
	foreach ($query as $row)
		{
			$nip		= $row->nip;
			$nama		= $row->nama;
			$email	    = $row->email;
			$no_telp    = $row->no_telp;
			$pinbb	    = $row->pin_bb;
			
			/*if($status=="publish"){
				$image = "world.png";
				$title = "Publish";
			}else{
				$image = "cross.png";
				$title = "Unpublish";
			}*/
		?>
	<tr style="background:#FFFFFF"valign="center">

		<th scope="row" class="td-view check-column"><input type="checkbox" name="cekbok[]" value="<?=$nip;?>" /></th>
		<td class="td-view"><?=($i+$uri);?></td>		
		<td class="td-view" width="10%"><?=$nip?></td>	
		<td class="td-view" width="30%"><?=$nama?></td>
		<td class="td-view" width="20%"><?=$email?></td>
		<td class="td-view" width="10%" align="center"><?=$no_telp ?></td>		
		<td class="td-view" width="10%"><?=$pinbb?></td>
		<td class="td-view" width="20%" align="center"><img onclick="window.open('view_marketing/<?=$nip?>','win', 'status=yes,height=300,width=570,top=100,left=100')" src="<?=base_url()?>css/icon/view.png">&nbsp;|&nbsp;<a href="<?=site_url('administrator/edit_marketing/'.$nip)?>" title="Edit Marketing"><img src="<?=base_url()?>css/icon/edit.png"></a>&nbsp;|&nbsp;<a href="<?=site_url('administrator/delete_marketing/'.$nip)?>" title="Delete Marketing"><img src="<?=base_url()?>css/icon/delete.png"></a></td>
	</tr>
	<?$i++;}?>
	</tbody>
</table>
</form>
<table width="250" align="center" border="1">
		<tr style="background:">
			<td width="250" valign="middle" align="center">
			<font face=verdana size=2 color=#FF0000>
			<div style="float:left">
				<center>Banyak Data : <b><?=$jumlah?></b></center>
				<center><a><?echo $this->pagination->create_links();?></a></center>
			</div></font>
			</td>
		</tr>
	</table>
</div>
</div><!-- wrap -->

<div class="clear"></div></div><!-- wpbody-content -->
<div class="clear"></div></div><!-- wpbody -->
<div class="clear"></div></div><!-- wpcontent -->
</div><!-- wpwrap -->

<!--admin-footer-->
<?$this->load->view('admin/tools/admin-footer');?>
<!--admin-footer-->
